import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'
import layout from './layout/layout'
import user from './user/user'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    layout,
    user
  },
  plugins: [createPersistedState({
    storage: window.sessionStorage
  })]
})
